${r"
# 建议放到 nacos 中
server:
  port: 8081

spring:
  # 数据源配置
  datasource:
    type: com.zaxxer.hikari.HikariDataSource
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://${MYSQL_HOST:127.0.0.1}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:cloud}?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
    username: ${MYSQL_USERNAME:root}
    password: ${MYSQL_PASSWORD:Work58711}
"}

spring:
  application:
    name: ${r"@artifactId@"}
  cloud:
    nacos:
      username: ${r"@nacos.username@"}
      password: ${r"@nacos.password@"}
      discovery:
        server-addr: ${r"${NACOS_HOST:127.0.0.1}:${NACOS_PORT:8848}"}
        namespace: ${r"@nacos.namespace@"}
      config:
        server-addr: ${r"${spring.cloud.nacos.discovery.server-addr}"}
        namespace: ${r"@nacos.namespace@"}
  config:
    import:
      - nacos:${r"${spring.application.name}"}-${r"@profiles.active@"}.yml
      - nacos:common-${r"@profiles.active"}@.yml
